package com.zhanbo.zhanbowymusic.main.featured.adapter;

import android.content.Context;

import com.mwx.baselib.base.BaseBindingAdapter;
import com.zhanbo.zhanbowymusic.R;
import com.zhanbo.zhanbowymusic.databinding.ItemHomeOfficialBinding;
import com.zhanbo.zhanbowymusic.databinding.ItemZimuBinding;
import com.zhanbo.zhanbowymusic.main.featured.bean.SingerZiMuListBean;

public class SingerZiMuListAdapter extends BaseBindingAdapter<SingerZiMuListBean, ItemZimuBinding> {
    public SingerZiMuListAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.item_zimu;
    }

    @Override
    protected void onBindItem(ItemZimuBinding binding, SingerZiMuListBean item) {

        binding.tvZimu.setText(item.getName());
        if (item.isCheck()){
            binding.tvZimu.setTextColor(context.getResources().getColor(R.color.color_FD3E4A));
        }else {
            binding.tvZimu.setTextColor(context.getResources().getColor(R.color.color_283248));

        }
    }


}
